home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 76 / XENIATGM66.iso / Indiana Jones / Indiana Jones.exe / RESOURCE / PREVIEW.GOB / cog_pyr_dirtmoveranims.cog < prev    next >
Text File  |  1999-11-15  |  1KB  |  55 lines

  1. # Jones 3D Cog Script
  2. #
  3. # pyr_dirtmoveranims.cog
  4. #    
  5. # Ongoing elements of dirtmover (cylinder rotation, sounds
  6. #
  7. # [RKD]
  8. #
  9. # (C) 1998 LucasArts Entertainment Company LLC. All Rights Reserved
  10. # ========================================================================================
  11.  
  12. symbols
  13. message    arrived
  14. message    user1
  15.  
  16. thing    cylinder1
  17. thing    cylinder2    nolink
  18. thing    cylinder3    nolink
  19.  
  20. thing    engine        nolink
  21.  
  22. sound    cvystart=pyr_conveyor_start.wav    local
  23. sound    rattle=pyr_conveyor_move.wav    local
  24.  
  25. keyframe    enganim=pyr_ngin_desl.key    local
  26.  
  27. material    animmat=elvatr_rock_chain.mat    local
  28.  
  29. end
  30.  
  31. code
  32. user1:
  33.     materialanim(animmat, 30, 1);
  34.     PlayKey(engine, enganim, 4, 0x0, 0);
  35.  
  36.     PlaySoundThing(cvystart, engine, 1, -1, -1, 0);
  37.     sleep(.1);
  38.     PlaySoundThing(rattle, cylinder1, 1, -1, -1, 1);
  39.  
  40.     call arrived;
  41.     return;
  42.  
  43. arrived:
  44. # ---> cylinder 1 only
  45.     
  46.     Rotate(cylinder1, 3600, 0, 30);
  47.     Rotate(cylinder2, 3600, 0, 30);
  48.     Rotate(cylinder3, 3600, 0, 30);
  49.  
  50.     return;
  51.  
  52. end
  53.  
  54.  
  55.